bitkeeper revision 1.1104 (40f834b0XKxLqwV45R5DkTjgl6UzaQ)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Fri, 16 Jul 2004 20:04:00 +0000 (20:04 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Fri, 16 Jul 2004 20:04:00 +0000 (20:04 +0000)
Stop compile warnings.

linux-2.4.26-xen-sparse/arch/xen/drivers/balloon/balloon.c

index bfeb48924c3ba123faea6a3ebc781ebcc3c6d457..cb94867902b28b9a6b465b46df63726376721ec9 100644 (file)
@@ -228,7 +228,8 @@ static int balloon_write(struct file *file, const char *buffer,
                          u_long count, void *data)
 {
     char memstring[64], *endchar;
-    int len, i, pages;
+    int len, i;
+    unsigned long pages;
     unsigned long long target;
 
     /* Only admin can play with the balloon :) */
@@ -259,7 +260,7 @@ static int balloon_write(struct file *file, const char *buffer,
            if (change<0) return change;
 
            current_pages -= change;
-           printk("Relinquish %dMB to xen. Domain now has %dMB\n",
+           printk("Relinquish %dMB to xen. Domain now has %ldMB\n",
                    change>>PAGE_TO_MB_SHIFT, current_pages>>PAGE_TO_MB_SHIFT);
     }
     else if (pages > current_pages) {
@@ -267,7 +268,7 @@ static int balloon_write(struct file *file, const char *buffer,
            if (change<0) return change;
 
            current_pages += change;
-           printk("Reclaim %dMB from xen. Domain now has %dMB\n",
+           printk("Reclaim %dMB from xen. Domain now has %ldMB\n",
                    change>>PAGE_TO_MB_SHIFT, current_pages>>PAGE_TO_MB_SHIFT);
     }
 
@@ -279,7 +280,7 @@ static int balloon_read(char *page, char **start, off_t off,
          int count, int *eof, void *data)
 {
        int len;
-       len = sprintf(page,"%ul\n",current_pages<<PAGE_SHIFT);
+       len = sprintf(page,"%lu\n",current_pages<<PAGE_SHIFT);
 
        if (len <= off+count) *eof = 1;
        *start = page + off;